package com.tsll.dao;

import com.tsll.entity.Role;
import com.tsll.vo.Result;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 13142
* @description 针对表【role】的数据库操作Mapper
* @createDate 2024-03-18 18:51:37
* @Entity com.tsll.entity.Role
*/
public interface RoleMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role role);

    Result selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role role);

    int updateByPrimaryKey(Role record);


    List<Role> selectAll();

    public Integer updateStatus(@Param("roleId") Integer roleId, @Param("status") Integer status);
    int update(Role role);

    List<Role> selectByDeptid(Integer deptid);

}
